/* 定义CSS变量 */
:root {
    --primary-color: #f47c21;
    --secondary-color: #fff;
    --border-color: #eaeaea;
    --text-color: #333;
    --gap-size: 20px;
    --transition-speed: 0.3s;
}

/* 整体布局 */
.buyer-center {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    width: 200px;
}

.left-section {
    flex: 1;
    min-width: 300px;
    margin-top: 20px;
}

.right-section {
    flex: 2;
    min-width: 400px;
    margin-top: 20px;
}
h2{
    margin-left: 20px;
    margin-top: -0px;
}

/* 履约服务账单样式 */
.service-bill {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: var(--gap-size);
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.service-bill:hover {
    transform: translateY(-5px);
}

.pay-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    margin: 20px auto 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.pay-button:hover {
    background-color: #f5f5f5;
    transform: scale(1.05);
}

/* 店铺卡片样式 */
.titleshopping{
    width: 800px;
    height: 50px;
    /* line-height: 50px; */
    margin-left: 10px;
    /* background-color: palevioletred; */
    display: flex;
    margin-top: 20px;
}
.span1{
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-left: 600px;
    margin-top: 10px;
}
.store-list{
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding: 10px;
}
.store-card {
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: var(--gap-size);
    border-radius: 8px;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    
}

.store-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.store-icon {
    background-color: var(--primary-color);
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 12px;
    transition: transform var(--transition-speed);
}

.store-card:hover .store-icon {
    transform: rotate(5deg);
}

.enter-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.enter-button:hover {
    background-color: #e06b10;
    transform: scale(1.05);
}

/* 服务 */
.service-modules{
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: 800px;
    text-align: center;
    margin: 0 auto;
    margin-left: 10px;
    margin-bottom: 50px;
}
.service-module {
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    background-color: var(--background-color);
    transition: all var(--transition-speed);
    width: 800px;
}

.service-module:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}


/* 广告样式 */
.advertisement {
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all var(--transition-speed);
}

.advertisement:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefits li {
    color: var(--primary-color);
    margin-bottom: 8px;
    transition: transform var(--transition-speed);
}

.benefits li:hover {
    transform: translateX(5px);
}

/* 服务模块样式 */
.service-module {
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: var(--gap-size);
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.service-module:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    transition: transform var(--transition-speed);
    background-color: palevioletred;
}

.service-module:hover .service-icon {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .buyer-center {
        flex-direction: column;
    }
    
    .left-section,
    .right-section {
        width: 100%;
        min-width: auto;
    }
}



/* 为模态框添加样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

.modal-footer button {
    margin-left: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-button {
    background-color: #f1f1f1;
}

.confirm-button {
    background-color: #4CAF50;
    color: white;
}

/* 使加号看起来更像按钮 */
.span1 {
    cursor: pointer;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-left: 10px;
}

.span1:hover {
    background-color: #e0e0e0;
}

.App{
    width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 添加一些样式来美化表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f0f0f0;
}